package com.ikas.ai.framework.node;

/**
 * @Description: 算法状态
 * @Author: qi.yilai
 * @Date: 2023/1/12 17:18
 * @Version: 1.0.0
 **/
public enum NodeStatus {

    // 初始状态
    CREATED(0, "created"),

    // 开始状态
    STARTING(1, "starting"),

    // 成功
    SUCCESS(2, "success"),

    // 失败
    FAILURE(3, "failure"),
    ;

    private Integer status;

    private String code;

    NodeStatus(Integer status, String code) {
        this.status = status;
        this.code = code;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
